package com.sgb.kjwl.view.ui.activity.self.websiteManage;

import android.content.Context;
import android.content.Intent;
import androidx.databinding.DataBindingUtil;

import com.sgb.kjwl.AppActivity;
import com.sgb.kjwl.R;
import com.sgb.kjwl.databinding.ActivityWebsiteManage3Binding;

public class WebsiteManageActivity3 extends AppActivity {

    private ActivityWebsiteManage3Binding binding;

    public static void start(Context context,String id){
        Intent intent = new Intent(context, WebsiteManageActivity3.class);
        intent.putExtra("companyId",id);
        context.startActivity(intent);
    }

    @Override
    protected void initView() {

        binding = DataBindingUtil.setContentView(this, R.layout.activity_website_manage3);
        binding.includeActionBar.titleView.setText("网站管理");
        binding.includeActionBar.ivBack.setOnClickListener(view -> finish());
        binding.companyInfoLayout.setEnable(false);

        String comId = getIntent().getStringExtra("companyId");

        binding.companyInfoLayout.setOnWholeItemClickListener(view -> WebsiteDetailActivity3.start(WebsiteManageActivity3.this,comId));
        binding.companyPhotoLayout.setOnWholeItemClickListener(view -> {
            WebsitePhotoActivity3.start(WebsiteManageActivity3.this,comId);
        });
        binding.companyQualiLayout.setOnWholeItemClickListener(view -> {
            WebsiteQualifiActivity3.start(WebsiteManageActivity3.this,comId);
        });

    }

}
